package com.ziyun.erp.modules.goodsCategory.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.goodsCategory.entity.GoodsCategoryVO;
import io.renren.common.utils.PageUtils;
import com.ziyun.erp.modules.goodsCategory.entity.GoodsCategoryEntity;
import io.renren.common.utils.R;

import java.util.List;
import java.util.Map;

/**
 * 商品分类表
 *
 * @author 
 * @email 
 * @date 2018-08-17 13:22:48
 */
public interface GoodsCategoryService extends IService<GoodsCategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<GoodsCategoryEntity> queryAllList();

    R getCatNamesByCategoryId(Integer categoryId);

    GoodsCategoryEntity getCatByTemplateId(Long templateId);

    void updateGoodsCategoryAndCategoryRelationById(GoodsCategoryVO goodsCategoryVO);

    void insertGoodsCategoryAndCategoryRelation(GoodsCategoryEntity goodsCategory);

    void updateTemplateId(Long templateId, Integer categoryId);

    R info(Integer categoryId);

    R getGoodsType();

    List<GoodsCategoryEntity> select();

    void flagDel(Integer categoryId);

    void updateGodosCategory(GoodsCategoryEntity goodsCategory);

    Map<String, Object> getAddInfo();

    Map<String, Object> countPrice(Map paramBodyMap);

    List<Integer> getCategoryIdsByParentIds(List<Integer> parentCategoryIds);

    GoodsCategoryEntity selectAllGoodsCategory(Integer categoryId);

    void hide(Integer requestParamInteger,Boolean hide);

    void handHide(Integer requestParamInteger, Boolean hide);
}


